
import React from 'react';
import './index.less'

import Loading from 'bee-loading';
import 'bee-loading/build/Loading.css';

class LoadingC extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            show: false
        };
        this.setLoadingState = this.setLoadingState.bind(this)
        this.getLoadingState = this.getLoadingState.bind(this)
    }

    render() {
        return (
            <Loading container={this} show={this.state.show} />
        )
    }
    setLoadingState(show) {
        this.setState({
            show
        })
    }
    getLoadingState() {
        return this.state.show
    }
}

export default LoadingC;